package kr.co.goodwilldd.repository.board;

import java.util.List;

import kr.co.goodwilldd.entity.board.model.BoardEntity;
import kr.co.goodwilldd.framework.common.model.CommonPaging;

import org.springframework.stereotype.Repository;

@Repository
public interface IBoardRepository {

	/**
	 * 게시판 목록
	 * 
	 * @return
	 */
	public List<BoardEntity> getList(CommonPaging<BoardEntity> entity);

	/**
	 * 게시물 총 수
	 * 
	 * @param entity
	 * @return
	 */
	public int getListCount(CommonPaging<BoardEntity> entity);

	/**
	 * 게시판 글
	 * 
	 * @param seq
	 * @return
	 */
	public BoardEntity getArticle(BoardEntity entity);

	public void doWrite(BoardEntity entity);

	public void doDelete(BoardEntity entity);

	public void doModify(BoardEntity entity);

	/**
	 * 메인 페이지 노출 상품 9개
	 * 
	 * @param boardSeq
	 * @return
	 */
	public List<BoardEntity> getNoticeList(Integer boardSeq);

}
